using Core;

namespace Server;

internal class BaseCommandFactory
{
    public static BaseCommand CreateHeartbeatCommand()
    {
        return new BaseCommand
        {
            Key = BaseCommand.Types.CommandType.HeartBeat,
            HeartBeat = new CommandHeartBeat
            {
                ClientTimesteamp = 1,
            }
        };
    }
    
    public static BaseCommand CreateHeartbeatCommandReply()
    {
        return new BaseCommand
        {
            Key = BaseCommand.Types.CommandType.HeartBeatReply,
            HeartBeatReply = new CommandHeartBeatReply
            {
                ServerTimesteamp = 1,
            }
        };
    }
}